/* 忘记密码页面专属样式 */

.forgot-container{
    width: 100%;
    height: calc(100% - 50px);

    /*为了能让内部的 登录对话框 垂直水平居中 使用弹性布局*/
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.forgot-container.visible {
    opacity: 1;
}

.forgot-dialog{
    background: white;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 50px;
    transition: transform 0.3s ease;
}

.forgot-dialog:hover {
    transform: translateY(-5px);
}

h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.row {
    margin-bottom: 20px;
    position: relative;
}

/*label是行内元素,直接设置宽度无效,需要先设置成块级元素*/
.row label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.row input:focus {
    border-color: #7eb4b8;
    box-shadow: 0 0 0 2px rgba(126, 180, 184, 0.2);
}

.row input::placeholder {
    color: #aaa;
    font-size: 14px;
}

.row input.error {
    border-color: #ff3860;
}

.error-message {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.hint {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* 验证码区域样式 */
.verification-inputs {
    display: flex;
    gap: 10px;
}

.verification-inputs input {
    flex: 1;
}

.send-code-btn {
    background: linear-gradient(to right, #7eb4b8, #99dbd0);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.send-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126, 180, 184, 0.4);
}

.send-code-btn:active {
    transform: translateY(0);
}

.send-code-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #7eb4b8, #99dbd0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126, 180, 184, 0.4);
}

#submit:active {
    transform: translateY(0);
}

#submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.additional-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.additional-links a {
    color: #7eb4b8;
    text-decoration: none;
    margin: 0 5px;
}

.additional-links a:hover {
    text-decoration: underline;
}

/* 自定义消息样式 */
.custom-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-message.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-message.success-message {
    background-color: #4CAF50;
}

.custom-message.error-message {
    background-color: #F44336;
}

/* 错误输入框样式 */
input.error {
    border-color: #F44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2) !important;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .forgot-dialog {
        width: 90%;
        padding: 20px;
    }
    
    .verification-inputs {
        flex-direction: column;
    }
    
    .send-code-btn {
        padding: 12px;
        margin-top: 5px;
    }
}